home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Nothing / Sources / Part.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.9 KB  |  105 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PART_H
  11. #include "Part.h"
  12. #endif
  13.  
  14. #ifndef FRAME_H
  15. #include "Frame.h"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. // ----- Framework Includes -----
  27.  
  28. #ifndef FWUTIL_H
  29. #include "FWUtil.h"
  30. #endif
  31.  
  32. #ifndef FWCFMRES_H
  33. #include "FWCFMRes.h"
  34. #endif
  35.  
  36. //========================================================================================
  37. //    Runtime informations
  38. //========================================================================================
  39.  
  40. #ifdef FW_BUILD_MAC
  41. #pragma segment odfnothing
  42. #endif
  43.  
  44. //========================================================================================
  45. //    CLASS CNothingPart
  46. //========================================================================================
  47.  
  48.  
  49. FW_DEFINE_AUTO(CNothingPart)
  50.     
  51. //----------------------------------------------------------------------------------------
  52. //     CNothingPart::CNothingPart
  53. //----------------------------------------------------------------------------------------
  54.  
  55. CNothingPart::CNothingPart(ODPart* odPart):
  56.     FW_CPart(odPart, FW_gInstance, kPartInfoID)
  57. {
  58.     FW_END_CONSTRUCTOR
  59. }
  60.  
  61. //----------------------------------------------------------------------------------------
  62. //     CNothingPart::~CNothingPart
  63. //----------------------------------------------------------------------------------------
  64.  
  65. CNothingPart::~CNothingPart()
  66. {
  67.     FW_START_DESTRUCTOR
  68. }
  69.  
  70. //----------------------------------------------------------------------------------------
  71. //     CNothingPart::Initialize
  72. //----------------------------------------------------------------------------------------
  73.  
  74. void CNothingPart::Initialize(Environment* ev, ODStorageUnit* storageUnit, FW_Boolean fromStorage)
  75. {
  76.     FW_CPart::Initialize(ev, storageUnit, fromStorage);
  77.     
  78.     RegisterPresentation(ev, "Apple:Presentation:ODFNothing", TRUE);
  79. }
  80.  
  81. //----------------------------------------------------------------------------------------
  82. //     CNothingPart::NewFrame
  83. //----------------------------------------------------------------------------------------
  84.  
  85. FW_CFrame* CNothingPart::NewFrame(Environment* ev, 
  86.                                   ODFrame* odFrame, 
  87.                                   FW_CPresentation* presentation, 
  88.                                   FW_Boolean fromStorage)
  89. {
  90. FW_UNUSED(presentation);
  91. FW_UNUSED(fromStorage);
  92.     
  93.     return FW_NEW(CNothingFrame, (ev, odFrame, presentation, this));
  94. }
  95.  
  96. //----------------------------------------------------------------------------------------
  97. //     CNothingPart::NewPartContent
  98. //----------------------------------------------------------------------------------------
  99.  
  100. FW_CContent* CNothingPart::NewPartContent(Environment* ev)
  101. {
  102. FW_UNUSED(ev);
  103.     return NULL;
  104. }
  105.